/*
 * NodeSource.h
 *
 *  Created on: 10/11/2011
 *      Author: godinho
 */

#ifndef NODESOURCE_H_
#define NODESOURCE_H_

class SimulationNode;

class NodeSource {
public:
	NodeSource(SimulationNode* node, SimulationNode* target, float arrivalRate);

	virtual ~NodeSource();

	int generate();

	SimulationNode* getNode();

	SimulationNode* getTarget();

	int getLastGeneratedAmount();

	float getArrivalRate();

private:
	SimulationNode* mNode;
	SimulationNode* mTarget;

	float mArrivalRate;

	int mLastGeneratedAmount;
};

#endif /* NODESOURCE_H_ */
